package controller

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"github.com/joho/godotenv"
	"github.com/sirupsen/logrus"
	"os"
)

func Index(c *gin.Context)  {
	err := godotenv.Load()
	if err != nil {
		logrus.Error("Error loading .env file")
	}
	account := os.Getenv("ACCOUNT")
	c.String(http.StatusOK, "账号是 %s", account)
}